/**
 * Created by Frank on 2015/6/7.
 */

function iFrameHeight(iframepage) { //自适应iframe高度的代码
	alert();
    var ifm= document.getElementById(iframepage);
    var subWeb = document.frames ? document.frames[iframepage].document :
    ifm.contentDocument;
    if(ifm != null && subWeb != null) {
    ifm.height = subWeb.body.scrollHeight;
    }

}
